# code/stage1_setup.py

import os
import logging
from pathlib import Path

BASE_DIR = Path(__file__).resolve().parent.parent
RAW_DATA_DIR = BASE_DIR / 'data'
WVS_CSV_PATH = RAW_DATA_DIR / 'WVS_Time_Series_1981-2022_csv_v5_0.csv'
ISSP_DIR = RAW_DATA_DIR
VDEM_CSV_PATH = RAW_DATA_DIR / 'V-Dem-CY-Full+Others-v15.csv'
GII_XLSX_PATH = RAW_DATA_DIR / 'HDR23-24_Statistical_Annex_GII_Table.xlsx'
POLITY_CSV_PATH = RAW_DATA_DIR / 'Polity5_converted.csv'

PROCESSED_DATA_DIR = BASE_DIR / 'data' / 'processed'
RESULT_DIR = BASE_DIR / 'result'
FIGURE_DIR = RESULT_DIR / 'figures'

for d in (PROCESSED_DATA_DIR, RESULT_DIR, FIGURE_DIR):
    os.makedirs(d, exist_ok=True)

logging.basicConfig(
    level=logging.INFO,
    format='%(asctime)s [%(levelname)s] %(message)s',
)
